package com.dabay.web.dao;

import java.util.List;
import java.util.Map;

import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.dabay.web.module.News;
import com.dabay.web.module.NewsDetail;


@Transactional(propagation=Propagation.REQUIRES_NEW,readOnly=false,isolation=Isolation.DEFAULT)
public interface NewsDAO {
	/**
	 * 新闻资讯
	 * @param arear_renli
	 * @return
	 */
	public int insertNews(News news);
	public int selectNewsById(String docid);
	public List<News> selectNewsBy();
	public List<News> selectNewsByChannelid(String channelid);
	public List<News> selectNewsByChannelidFY(Map paramMap);
	public List<News> selectNewsLimit(String channelid);
	
	/**
	 * 政务动态首页
	 */
	public void deleteNews_zwdt();
	public List<News> selectIndex_zwdt();
	public int insertNews_zwdt(News news);
	public List<News> selectNewsLimit_zwdt();

	
	/**
	 * 新闻资讯详情
	 * @param arear_renli
	 * @return
	 */
	public int insertNewsDetail(NewsDetail newsDetail);
	public int selectNewsDetail(String docid);
	public NewsDetail selectNewsDetailByDocid(String docId);
	public void deleteNews(Map paramMap);
	public void deleteNewsDetail(Map paramMap);
	
	public List<News> selectNewsImageList();
	

}
